package cn.itsource.pethome.mapper;

import cn.itsource.pethome.domain.Employee;
import cn.itsource.pethome.domain.User;
import cn.itsource.pethome.query.EmployeeQuery;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee, EmployeeQuery>{

    /**
     * 根据职位查询员工
     * @param jobId
     * @return
     */
    List<Employee> findAllByJobId(Long jobId);

    /**
     * 通过用户名/手机号/邮箱查询Employee对象
     * @param username
     * @return
     */
    Employee findByAccount(String username);
}
